<?php
namespace App\TeSchool;
use App\TxSchool\Type\App;
use App\TxSchool\Type\Developer;
use App\TxSchool\Type\School;

/**
 * Class SmartCampus
 * @package App\TeSchool
 */
class SmartCampus{
    /**
     * @var School
     */
    public $school;
    /**
     * @var Developer
     */
    public $developer;
    /**
     * @var App
     */
    public $app;

    public function __construct(array $params,array  $types = ["school","developer","app"])
    {
        if(in_array("school",$types)){
            $this->school = new School($params);
        }
        if(in_array("developer",$types)){
            $this->developer = new Developer($params);
        }
        if(in_array("app",$types)){
            $this->app= new App($params);
        }
    }
}
